import java.util.HashMap;

public class MapStream {
    public static void main(String[] args) {

        HashMap<String,Integer> hashMap=new HashMap();
        hashMap.put("aaa",111);
        hashMap.put("bbb",222);
        hashMap.put("ccc",333);
        hashMap.put("ddd",444);
        hashMap.put("eee",555);
        hashMap.entrySet().stream().forEach(s-> System.out.println(s));
        hashMap.keySet().stream().forEach(s-> System.out.println(s));



    }
}
